package com.ruoyi.bizsys.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 接口重试对象 ext_try_queue
 *
 * @author african-loan
 * @date 2022-03-04
 */

@Data
public class ExtTryQueue extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 放款
     */
    public static final String TRANSFER = "transfer";
    /**
     * 虚拟账户
     */
    public static final String VIRTUAL = "virtual";

    /**
     * paystack生成虚拟账户 的 3个接口的类型
     */
    public static final String TYPE_PAYSTACK_CREATE_VA = "paystack_create_va";

    /**
     * $column.columnComment
     */

    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @TableId(type = IdType.AUTO)
    private Long id;


    /**
     * $column.columnComment
     */

    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")

    private String userId;

    private String custNo;

    private String paramData;

    /**
     * 唯一字符串
     */
    @Excel(name = "唯一字符串")
    private String serialNo;


    /**
     * 重试类型
     */

    @Excel(name = "重试类型")
    private String tryType;


    /**
     * 尝试次数
     * 初始数 0
     */

    @Excel(name = "尝试次数")
    private Long tryCount;


    /**
     * 状态 0未结束; 1结束
     * 初始0
     */

    @Excel(name = "状态 0未结束; 1结束")
    private String state;


    /**
     * 备注
     */

    @Excel(name = "备注")

    private String remark;


    /**
     * 创建者
     */
    @Excel(name = "创建者")
    private String createBy;


    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createTime;


    /**
     * 更新者
     */

    @Excel(name = "更新者")
    private String updateBy;


    /**
     * 更新时间
     */

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateTime;

}